<template>
  <view class="index">
    hello world<tag text="123" type="success"></tag>
	<image src="/static/b.jpg"/>
	<image src="/static/a.jpg"/>
	<u-button type="primary">主要按钮</u-button>
  </view>
</template>

<script>
import tag from '../../components/components/uni-tag/uni-tag'
export default {
  components:{
    tag
  },
  mounted () {
	  console.log(123)
	  console.log(this.$http)
	  this.$http.get('http://localhost:4444/text').then(res=>{
		  console.log(res)
	  })
	  uni.setStorageSync('token','12345')
	  uni.setStorage({
	  	key:'daa',
		data: '123',
		success: () => {
			uni.showToast({
				duration:1000,
				title:'成功'
			})
		}
	  })
	  uni.removeStorage({
	  	key:'da'
	  })
	  uni.getStorage({
	  	key:'da',
		success:(da)=>{
			console.log(da)
		},
		fail() {
			console.log(123,'12')
		}
	  })
  }
}
</script>

<style lang="scss">
.index {
  
}
</style>
